home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_tem_entdeathcam.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  55 lines

  1. # Jones 3D Cog Script
  2. #
  3. # TEM_EntDeathCam.cog
  4. #
  5. # [TRM]
  6. #
  7. # (C) 1999 LucasArts Entertainment Co. All Rights Reserved
  8. # ========================================================================================
  9.  
  10. symbols
  11.  
  12.     message     entered
  13.     
  14.     thing       player      local
  15.     thing       cam_Dead
  16.     
  17.     surface     surf_Lava0  linkID=1
  18.     surface     surf_Lava1  linkID=1
  19.     
  20.     int         dead=0      local
  21.     
  22. end
  23.  
  24. # ========================================================================================
  25.  
  26. code
  27.  
  28. entered:
  29.  
  30.     player = GetLocalPlayerThing();
  31.     
  32.     if((GetSenderID() == 1) && (dead == 0))
  33.     {
  34.         dead = 1;
  35.         # switch to cam_Dead
  36.         SetCameraFocus(2, cam_Dead);
  37.         SetCameraSecondaryFocus(2, player);
  38.         SetCurrentCamera(2);
  39.         
  40.         Sleep(2.0);
  41.         
  42.         # player is still alive
  43.         if(GetThingHealth(player) > 0)
  44.         {
  45.             SetCurrentCamera(1);
  46.         }
  47.     }
  48.     
  49.     return;
  50.  
  51. # ========================================================================================
  52.  
  53. end
  54.  
  55.